package com.link.base.base.saleactivity.service;

import com.link.base.base.saleactivity.dao.mybatis.mapper.OddsMapper;
import com.link.base.base.saleactivity.model.Odds;
import com.link.core.basic.dao.mapper.BasicMapper;
import com.link.core.basic.service.BasicServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
 * @author: wangdawei
 * @date: 2018/6/1
 * 营销活动-抽奖概率serviceImp
 */

@Service
public class OddsServiceImpl extends BasicServiceImpl<Odds> implements OddsService {

    @Resource
    private OddsMapper oddsMapper;

    @Override
    public BasicMapper<Odds> getBasicMapper() {
        return oddsMapper;
    }

    @Override
    public List<Odds> queryCountByactId(Long activityId) throws Exception {
        return oddsMapper.queryCountByactId(activityId);
    }
}
